<template>
    <div>
        <button>返回</button>
        <span>{{ title }}</span>
        <button>列表</button>
    </div>
</template>
<script>
import min from './min';
export default {
    data() {
        return {
            title: "首页"
        }

    },
    //   inject:['hu','app']
    // 生命周期 mounted
    mounted() {
        min.hhb((value) => {
            console.log('kfkf', value)
            this.title = value
        }
        )

    }
}

</script>
<style scoped>
div {
    display: flex;
    height: 50px;
    justify-content: space-between;
    background-color: whitesmoke;
    line-height: 50px;
}

button {
    width: 50px;
}
</style>